package com.yami.shop.vo.group.ban;

import com.yami.shop.vo.group.GroupIdVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GroupBanVo implements Serializable {

    @Valid
    @NotNull(message = "群组id列表不能为空")
    @Schema(description = "群组id列表", required = true)
    private List<GroupIdVo> groups;


    @NotNull(message = "禁言时长不能为null")
    @Schema(description = "禁言时长", required = true)
    private Integer minute;
}
